import * as THREE from "three";

const config = {
  cWidth: window.innerWidth,
  cHeight: window.innerHeight,
};

const renderer = new THREE.WebGLRenderer({
  antialias: true, //开启锯齿
  // 对数深度缓冲区解决深度冲突问题
  logarithmicDepthBuffer: true,
});

renderer.setSize(config.cWidth, config.cHeight); //设置渲染区域尺寸
renderer.setClearColor(0x005577, 1); //设置背景颜色

export { renderer };
